#include "parser.hh"
#include "run.hh"

#include <iostream>
#include <fstream>
#include <istream>
#include <string>

int main(int argc, char* argv[])
{
  if (argc != 2)
    {
      std::cout << "Usage: parall toolchain"
		<< std::endl;

      return 0;
    }

  std::ifstream in(argv[1], std::ifstream::in);

  t_toolchain toolchain;

  toolchain.parse(in);

  run(toolchain);

  return 0;
}
